package com.haipumi.biz.impl;

import java.util.List;

import com.haipumi.beans.haipumi_activity;
import com.haipumi.biz.IBackActivityBiz;
import com.haipumi.dao.IBackActivityDao;
import com.haipumi.dao.impl.BackActivityDaoImpl;

public class BackActivityBizImpl implements IBackActivityBiz {

	IBackActivityDao ibad=new BackActivityDaoImpl();
	@Override
	public List<haipumi_activity> findAllActivity() {
		List<haipumi_activity>activitylist=null;
		activitylist=ibad.findAllActivity();
		return activitylist;
	}

	@Override
	public int countAllActivity() {
		int r=0;
		r=ibad.countAllActivity();
		return r;
	}

	@Override
	public haipumi_activity addActivity(haipumi_activity activity) {
		haipumi_activity backactivity=null;
		backactivity=ibad.addActivity(activity);
		return backactivity;
	}

	@Override
	public haipumi_activity editActivity(haipumi_activity activity) {
		haipumi_activity backactivity=null;
		backactivity=ibad.editActivity(activity);
		return backactivity;
	}

}
